<#assign pageTitle = "专家" />
<#assign pageKeywords = pageTitle />
<#assign pageDescription = pageTitle />
<#assign channelId = 5 />
<#assign pageHeader>
</#assign>
<#assign pageContent>
	<div class="body-wrap">
		<div class="type-box white-bg">
			<div class="content-wrap">
				<#if subjects?? && subjects?size gt 0>
					<div class="clearfix">
						<span>专业：</span>
						<ul class="fl">
							<a title="不限" href="/teacher/index.html?starId=${query.starId}">
								<li <#if query.subjectId==0>class="active"</#if>>不限</li>
							</a>
							<#list subjects as subject>
								<a title="${subject.subjectName}" href="/teacher/index.html?subjectId=${subject.subjectId}&starId=${query.starId}">
									<li <#if query.subjectId==subject.subjectId >class="active"</#if>>${subject.subjectName}</li>
								</a>
							</#list>
						</ul>
					</div>
				</#if>
			<#--	<div class="clearfix">
					<span>职称：</span>
					<ul class="fl">
						<a title="不限" href="/teacher/index.html?subjectId=${query.subjectId}">
							<li <#if query.starId==0>class="active"</#if>>不限</li>
						</a>
						<a title="助教" href="/teacher/index.html?subjectId=${query.subjectId}&starId=1">
							<li <#if query.starId==1>class="active"</#if>>助教</li>
						</a>
						<a title="讲师" href="/teacher/index.html?subjectId=${query.subjectId}&starId=2">
							<li <#if query.starId==2>class="active"</#if>>讲师</li>
						</a>
						<a title="高级讲师" href="/teacher/index.html?subjectId=${query.subjectId}&starId=3">
							<li <#if query.starId==3>class="active"</#if>>高级讲师</li>
						</a>
						<a title="副教授" href="/teacher/index.html?subjectId=${query.subjectId}&starId=4">
							<li <#if query.starId==4>class="active"</#if>>副教授</li>
						</a>
						<a title="教授" href="/teacher/index.html?subjectId=${query.subjectId}&starId=5">
							<li <#if query.starId==5>class="active"</#if>>教授</li>
						</a>
					</ul>
				</div>-->
			</div>
		</div>
		<div class="filter-box white-bg mb-20">
			<div class="content-wrap">
				<div class="fl">
					<span class="item <#if query.orderBy == 0>active</#if>" onclick="setOrderBy(0)">综合</span>
					<span class="division">|</span>
					<span class="item <#if query.orderBy == 1>active</#if>" onclick="setOrderBy(1)">热度</span>
					<span class="division">|</span>
					<span class="item <#if query.orderBy == 2>active</#if>" onclick="setOrderBy(2)">点赞</span>
				</div>
				<div class="fr">
					<div class="layui-form">
						<label for="isElite">
							<input onclick="setIsElite()" type="checkbox" id="isElite" value="1" title="推荐" lay-skin="primary" <#if query.isElite == 1 >checked</#if>>
						</label>
						<label for="isHot">
							<input onclick="setIsHot()" type="checkbox" id="isHot" value="1" title="热门" lay-skin="primary" <#if query.isHot == 1 >checked</#if>>
						</label>
					</div>
				</div>
			</div>
		</div>
		<div class="content-wrap">
			<div class="teacher-list mb-20">
				<#if teacherList??>
					<#list teacherList as teacher>
				<div class="list-items">
					<a href="/teacher/view/${teacher.id}.html" target="_blank" class="list-item">
						<div class="list-content">
							<div class="list-teacher-img">
								<#if teacher.avatar?? && teacher.avatar?string != '' >
									<img lay-src="${teacher.avatar}" alt="">
									<#else >
										<img src="/static/images/teacher/teacher-avatar-${teacher.sex}.png" alt="">
								</#if>
							</div>
							<div class="list-teacher-info">
								<h2>${teacher.name}<span>${teacher.workUnit!}</span></h2>
								<div class="list-teacher-introduce">
									${teacher.intro!}
								</div>
								<div class="list-teacher-type">
									<#if teacher.tags??>
										<#assign tags = teacher.tags?split(',') />
										<#list tags as tag>
											<span>${tag}</span>
										</#list>
									<#else>
										<span>${teacher.education!}</span>
									</#if>
								</div>
							</div>
						</div>
					</a>
				</div>
					</#list>
				</#if>
			</div>
		</div>
		<!--分页 s-->
		<div class="page-box content-wrap">
			<div class="layui-box layui-laypage layui-laypage-molv" id="showPages"></div>
		</div>
		<#--div id="list-ft" class="page-box content-wrap">
			<label class="layui-btn layui-btn-normal">1</label>
			<a href="/paper/list.html?stageId=4&amp;bankId=18&amp;filter=0~-1~0&amp;page=2" class="layui-btn layui-btn-primary">2</a>
			<a href="/paper/list.html?stageId=4&amp;bankId=18&amp;filter=0~-1~0&amp;page=3" class="layui-btn layui-btn-primary">3</a>
			<a href="/paper/list.html?stageId=4&amp;bankId=18&amp;filter=0~-1~0&amp;page=4" class="layui-btn layui-btn-primary">4</a>
			<a href="/paper/list.html?stageId=4&amp;bankId=18&amp;filter=0~-1~0&amp;page=5" class="layui-btn layui-btn-primary">5</a>
			<a href="/paper/list.html?stageId=4&amp;bankId=18&amp;filter=0~-1~0&amp;page=6" class="layui-btn layui-btn-primary">6</a>
			<a href="/paper/list.html?stageId=4&amp;bankId=18&amp;filter=0~-1~0&amp;page=7" class="layui-btn layui-btn-primary">7</a>
			<a href="/paper/list.html?stageId=4&amp;bankId=18&amp;filter=0~-1~0&amp;page=8" class="layui-btn layui-btn-primary">8</a>
			<a href="/paper/list.html?stageId=4&amp;bankId=18&amp;filter=0~-1~0&amp;page=2" class="layui-btn layui-btn-primary">下一页&gt;</a>
			<a href="/paper/list.html?stageId=4&amp;bankId=18&amp;filter=0~-1~0&amp;page=111" class="layui-btn layui-btn-primary">...111</a>
		</div>
		分页 e-->
	</div>
</#assign>
<#assign pageFooter>
	<script type="text/javascript">
		var subjectId = ${query.subjectId};
		var starId = ${query.starId};
		var orderBy = ${query.orderBy};
		var isElite = ${query.isElite};
		var isHot = ${query.isHot};
		var options = {
			currentPage : ${page.currentPage}
			,totalPage : ${totalPages}
		};
	</script>
	<script type="text/javascript" src="/static/js/page.js"></script>
	<script type="text/javascript" src="/static/js/teacher/teacher-list.js"></script>
</#assign>
<#include "../layouts/layout.ftl">